package com.gitee.feizns.itrip.personal.auth.service.exception;

import com.gitee.feizns.itrip.personal.utils.service.exception.ServiceException;

/**
 * @author feizns
 * @since 2019/1/14 0014
 */
public class AuthException extends ServiceException {

    /**
     * 数据校验错误
     */
    public static final String AUTH_VALIDATE = "30000";

    /**
     * 用户名已存在
     */
    public static final String AUTH_USER_NAME_EXISTS = "30001";

    /**
     * 注册错误
     */
    public static final String REGISTER = "30002";

    public AuthException(String errorCode, String message) {
        super(errorCode, message);
    }

    public AuthException(String errorCode, String message, Throwable e) {
        super(errorCode, message, e);
    }

}
